import React from "react"
import LifeHeader from '../../../../components/lift_components/LifeHeader'
import LifeSearch from '../../../../components/lift_components/LifeSearch'
import Heating from '../../../../components/lift_components/Heating'
import BroadBand from '../../../../components/lift_components/BroadBand'

export default class LifeTypeTwo extends React.Component{

  render(){
    const lifeType = this.props.match.params.lifeType
    let setView;
    if(lifeType==='暖气费'){
      setView = <Heating />
    }else if (lifeType==='宽带') {
      setView = <BroadBand />
    }
    return(
      <div>
        <LifeHeader title='机构选择' />
        <LifeSearch />
        {setView}
      </div>
    )
  }
}
